home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / RootPane.cp < prev    next >
Text File  |  1997-06-28  |  464b  |  28 lines

  1. // RootPane.cp
  2.  
  3. #ifndef RootPane_h
  4. #include "RootPane.h"
  5. #endif
  6. #ifndef WindowObject_h
  7. #include "WindowObject.h"
  8. #endif
  9. #ifndef RegionObject_h
  10. #include "RegionObject.h"
  11. #endif
  12.  
  13. RootPane::RootPane( WindowObject& theWindow )
  14.   {
  15.     SetBounds( theWindow.LocalBounds() );
  16.     MapTo( theWindow );
  17.   }
  18.  
  19. void RootPane::Clip( RegionObject& region ) const
  20.   {
  21.     region &= Window().VisibleRegion();
  22.   }
  23.  
  24. void RootPane::UpdateBounds()
  25.   {
  26.     SetBounds( Window().LocalBounds() );
  27.   }
  28.